package cn.itrip.controller;

import cn.itrip.commons.DtoUtils;
import cn.itrip.dto.Dto;
import cn.itrip.service.ItripHotelRoomService;
import cn.itrip.vo.HotelRoomVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author Super God Jie
 * @version 1.0  2022-04-15 10:10
 */
@RestController
@RequestMapping("/api/hotelroom")
public class HotelRoomController {
	@Resource
	private ItripHotelRoomService itripHotelRoomService;

	@PostMapping("/queryhotelroombyhotel")
	public Dto queryhotelroombyhotel(@RequestBody Map<String,String> from){
		return DtoUtils.returnSuccess(itripHotelRoomService.queryhotelroombyhotel(from));
	}
}
